<?php
class UserInitPlatformInfoAction extends SzAbstractAction
{
    protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_ARRAY
    );

    /**
     * 初始化用户平台信息(微信名字，头像)
     *
     * @param int $userId
     * @param array $platformInfo
     * @return SzResponse
     */
    public function execute($userId, $platformInfo)
    {
        return $this->buildResponse(array(
            UserService::get()->platformInfoInit($userId, $platformInfo)
        ));
    }
}